﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Barry.Test.ViewModels;
using Orchard.DisplayManagement;
using Orchard.Settings;
using Orchard.Themes;
using Orchard.UI.Navigation;

namespace Barry.Test.Controllers
{
    public class LocationAdminController:Controller
    {
        private readonly ISiteService _siteService;
        private readonly IShapeFactory _shapeFactory;

        public LocationAdminController() {
            
        }

        public LocationAdminController(
            ISiteService siteService,
        
            IShapeFactory shapeFactory
            ) {
            _siteService = siteService;
            Shape = shapeFactory;
        }

        public dynamic Shape { set; get; }

        [Themed]
        public ActionResult Index() {
          //  Pager pager = new Pager(_siteService.GetSiteSettings());
            var model = new LocationIndexViewModel();
            return View(model);
        }
    }
}